package bean;
//检查记录表，根据创建时间排序
//CREATE TABLE check_appointment (
//        check_id INT NOT NULL AUTO_INCREMENT,
//        appointment_date DATE NOT NULL,
//        appointment_time TIME NOT NULL,
//        patient_name VARCHAR(50) NOT NULL,
//        patient_gender ENUM('男', '女', 'Unknown') NOT NULL,
//        patient_age INT NOT NULL,
//        examination_name VARCHAR(50) NOT NULL,
//        doctor_name VARCHAR(50) NOT NULL,
//        appointment_status ENUM('Pending', 'Confirmed', 'Canceled') NOT NULL,
//        created_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
//        PRIMARY KEY (check_id)
//        );
public class check_record {
    String check_id;
    String appointment_date;
    String appointment_time;
    String  patient_name;
    String patient_gender;
    String patient_age;
    String examination_name;
    String doctor_name;
    String appointment_status = "Pending"; //默认排队中
    String created_time;
    String IdNumber;
    String serialnumber ; // comment '检查序号',作为后续的排队属性，不插入数据库

    check check;//获取检查项目信息

    public check_record() {
    }

    public check_record(String check_id, String appointment_date, String appointment_time, String patient_name, String patient_gender, String patient_age, String examination_name, String doctor_name, String appointment_status, String created_time, String idNumber, String serialnumber, bean.check check) {
        this.check_id = check_id;
        this.appointment_date = appointment_date;
        this.appointment_time = appointment_time;
        this.patient_name = patient_name;
        this.patient_gender = patient_gender;
        this.patient_age = patient_age;
        this.examination_name = examination_name;
        this.doctor_name = doctor_name;
        this.appointment_status = appointment_status;
        this.created_time = created_time;
        IdNumber = idNumber;
        this.serialnumber = serialnumber;
        this.check = check;
    }

    public String getSerialnumber() {
        return serialnumber;
    }

    public void setSerialnumber(String serialnumber) {
        this.serialnumber = serialnumber;
    }

    public String getIdNumber() {
        return IdNumber;
    }

    public void setIdNumber(String idNumber) {
        IdNumber = idNumber;
    }


    public String getCheck_id() {
        return check_id;
    }



    public void setCheck_id(String check_id) {
        this.check_id = check_id;
    }

    public String getAppointment_date() {
        return appointment_date;
    }

    public void setAppointment_date(String appointment_date) {
        this.appointment_date = appointment_date;
    }

    public String getAppointment_time() {
        return appointment_time;
    }

    public void setAppointment_time(String appointment_time) {
        this.appointment_time = appointment_time;
    }

    public String getPatient_name() {
        return patient_name;
    }

    public void setPatient_name(String patient_name) {
        this.patient_name = patient_name;
    }

    public String getPatient_gender() {
        return patient_gender;
    }

    public void setPatient_gender(String patient_gender) {
        this.patient_gender = patient_gender;
    }

    public String getPatient_age() {
        return patient_age;
    }

    public void setPatient_age(String patient_age) {
        this.patient_age = patient_age;
    }

    public String getExamination_name() {
        return examination_name;
    }

    public void setExamination_name(String examination_name) {
        this.examination_name = examination_name;
    }

    public String getDoctor_name() {
        return doctor_name;
    }

    public void setDoctor_name(String doctor_name) {
        this.doctor_name = doctor_name;
    }

    public String getAppointment_status() {
        return appointment_status;
    }

    public void setAppointment_status(String appointment_status) {
        this.appointment_status = appointment_status;
    }

    public String getCreated_time() {
        return created_time;
    }

    public void setCreated_time(String created_time) {
        this.created_time = created_time;
    }

    public bean.check getCheck() {
        return check;
    }

    public void setCheck(bean.check check) {
        this.check = check;
    }

    @Override
    public String toString() {
        return "check_record{" +
                "check_id='" + check_id + '\'' +
                ", appointment_date='" + appointment_date + '\'' +
                ", appointment_time='" + appointment_time + '\'' +
                ", patient_name='" + patient_name + '\'' +
                ", patient_gender='" + patient_gender + '\'' +
                ", patient_age='" + patient_age + '\'' +
                ", examination_name='" + examination_name + '\'' +
                ", doctor_name='" + doctor_name + '\'' +
                ", appointment_status='" + appointment_status + '\'' +
                ", created_time='" + created_time + '\'' +
                ", IdNumber='" + IdNumber + '\'' +
                ", serialnumber='" + serialnumber + '\'' +
                ", check=" + check +
                '}';
    }
}
